using System;
using FreeSql.DataAnnotations;

namespace SchoolApp_Material.Models;

/// <summary>
/// 操作员
/// </summary>
[Table(Name = "operator")]
public class Operator : DataBase
{
    /// <summary>
    /// 编号
    /// </summary>
    [Column(Name = "code", StringLength = 50, IsNullable = true)]
    public string? Code { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [Column(Name = "name", StringLength = 50, IsNullable = true)]
    public string? Name { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [Column(Name = "pwd", StringLength = 50, IsNullable = true)]
    public string? Pwd { get; set; }
}